<?php
/**
 * 陈杰  18323491246
 */

namespace App\Models\Api;

use App\Models\BaseModel;

class ExtendChatModel extends BaseModel
{
    public $table = 'extend_chat';

    public static function get_list(int $page, int $count, int $group_id)
    {
        $data = self::query()
            ->where('gid', $group_id)
            ->offset($page)
            ->limit($count)
            ->orderByDesc('id')
            ->get()
            ->toArray();
        return $data;
    }
}
